bg = [
    "linear-gradient(to right, #16A085 , #F4D03F)",
    "linear-gradient(to right, #ff6e7f , #bfe9ff)",
    "linear-gradient(to right, #77A1D3 , #79CBCA , #E684AE)",
    "linear-gradient(to right, #2193b0 , #6dd5ed)",
    "linear-gradient(to right, #bbd2c5 , #536976)",
    "linear-gradient(to right, #9796f0 , #fbc7d4)",
    "linear-gradient(to right, #ffe259 , #ffa751)",
    "linear-gradient(to right, #799f0c , #acbb78)",
    "linear-gradient(to right, #ee9ca7 , #ffdde1)",
    "linear-gradient(to right, #c6ffdd , #fbd786 , #f7797d)"
]
$("#change-bg").click(function () {
    let rangeColor = Math.round(Math.random()*10);
    document.querySelector("body").style.backgroundImage = bg[rangeColor];
})